package passwordChecker;

import org.junit.Assert;
import org.junit.Test;


public class PasswordCheckerBaseTest
{
	

	@Test
	public void allLowercase() throws Exception
	{
		String passwordInput = "luiz";
		int systemOutput = PasswordCheckerBase.checkPassword(passwordInput).get(0);
		
		System.out.println(systemOutput);
		System.out.println(4);
		
		Assert.assertEquals(4, systemOutput);
	}
	
	@Test
	public void allUppercase() throws Exception
	{
		String passwordInput = "LUIZ";
		int systemOutput = PasswordCheckerBase.checkPassword(passwordInput).get(0);
		
		System.out.println(systemOutput);
		System.out.println(8);
		
		Assert.assertEquals(8, systemOutput);
	}
	
	@Test
	public void mixedUppercase() throws Exception
	{
		String passwordInput = "Luiz";
		int systemOutput = PasswordCheckerBase.checkPassword(passwordInput).get(0);
		
		System.out.println(systemOutput);
		System.out.println(11);
		
		Assert.assertEquals(11, systemOutput);
	}
	
	@Test
	public void lowercaseSpecialCharacters() throws Exception
	{
		String passwordInput = "luiz#";
		int systemOutput = PasswordCheckerBase.checkPassword(passwordInput).get(0);
		
		System.out.println(systemOutput);
		System.out.println(8);
		
		Assert.assertEquals(8, systemOutput);
	}
	
	@Test
	public void uppercaseSpecialCharacters() throws Exception
	{
		String passwordInput = "LUIZ#";
		int systemOutput = PasswordCheckerBase.checkPassword(passwordInput).get(0);
		
		System.out.println(systemOutput);
		System.out.println(11);
		
		Assert.assertEquals(11, systemOutput);
	}
}
